clampViewPositionVertical

open fun clampViewPositionVertical(@NonNull child: @NonNull View, top: Int, dy: Int): Int(source)

Restrict the motion of the dragged child view along the vertical axis. The default implementation does not allow vertical motion; the extending class must override this method and provide the desired clamping.

Return

The new clamped position for top

Parameters

child

Child view being dragged

top

Attempted motion along the Y axis

dy

Proposed change in position for top